'use strict';

const Controller = require('egg').Controller;

class LogoutController extends Controller {
  async index() {
    const { ctx } = this;
        ctx.cookies.set('username','',{
            httpOnly:false
        })
        ctx.body={
            code:200,
            msg:'退出登录'
        }
  }
}

module.exports = LogoutController;